package com.hopes.bizz.close.gis.vo;

import com.hopes.bizz.close.common.constant.enums.ParkCloseSysDictEnum;
import com.hopes.boss.admin.api.resolver.DictResolver;
import lombok.Data;

import java.io.Serializable;

/**
 * @author yumr
 * @ProjectName bizz
 * @Description 控制区数量VO
 * @time 2023/10/31 19:46
 */
@Data
public class AreaLevelVO implements Serializable {

    private static final long serialVersionUID = -1869242615990431433L;

    /**
     * 控制级别
     */
    private Integer level;

    /**
     * 控制级别数量
     */
    private Integer number;

    /**
     * 控制级别占比
     */
    private Integer percent;


    public String getLevelStr() {
        return DictResolver.getItemLabelByValue(ParkCloseSysDictEnum.close_area_control_level, this.getLevel());
    }

}
